home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 352_01.zip / STRPPTOU.CPP < prev    next >
C/C++ Source or Header  |  1993-04-10  |  375b  |  19 lines

  1. // STRPPTOU.CPP  - contains String::toUpper()
  2. //    convert a string to upper case.
  3. #include <stdlib.h>
  4. #include <string.h>
  5. #include <alloc.h>
  6. #include <iostream.h>
  7. #include <ctype.h>
  8.  
  9.  
  10. #include "dblib.h"
  11.  
  12. void String::toUpper() 
  13.     { 
  14.     int sn =n;
  15.     char *ss =s;
  16.     if ( ss != NULL ) 
  17.         for (int i=0; i<sn; ++i)  ss[i] = toupper(ss[i]);
  18.     }    // end String::toUpper()
  19.